2xeon2 Posted December 18, 2013 Share Posted December 18, 2013 Hello fellow modders, I am trying to make a bottle of holy water that adds sanity to your meter,But the only way I found possible is to eat the bottle using the edible component. The healer component doesn't seem to have an option to add sanity,so I made my own sanity_healer component. Only now, when I try to add sanity to Wilson ingame using the holy water item,Wilson replies with 'I can't do that'.Am I doing something wrong? And if so, how can I solve this issue? Thanks in advance!HolyWater.zip Link to comment https://forums.kleientertainment.com/forums/topic/30444-question-is-it-possible-to-heal-sanity/ Share on other sites More sharing options...
simplex Posted December 18, 2013 Share Posted December 18, 2013 Stategraphs. You could check this mod for the missing piece. Link to comment https://forums.kleientertainment.com/forums/topic/30444-question-is-it-possible-to-heal-sanity/#findComment-391040 Share on other sites More sharing options...
NikMik Posted December 18, 2013 Share Posted December 18, 2013 (edited) Making it an edible component would probably work best then, all you'd need it to do is:inst.components.edible.sanityvalue = TUNING.SANITY_HUGE(Could also be TINY, SMALL, MED I think, LARGE)It's pretty simple and works well enough. Edited December 19, 2013 by Mr. Tiddles Link to comment https://forums.kleientertainment.com/forums/topic/30444-question-is-it-possible-to-heal-sanity/#findComment-391170 Share on other sites More sharing options...
Heavenfall Posted December 19, 2013 Share Posted December 19, 2013 Eating the bottle sounds fine to me? From a coding perspective it would be by far the easiest solution. Link to comment https://forums.kleientertainment.com/forums/topic/30444-question-is-it-possible-to-heal-sanity/#findComment-391397 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now